﻿<Window x:Class="Stack_Check.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Stack checker" Height="514.684" Width="747.263" Icon="main.ico" Closed="Window_Closed">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="450*"/>
            <RowDefinition Height="35*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="250"/>
            <ColumnDefinition Width="300*"/>
        </Grid.ColumnDefinitions>

        <ListBox x:Name="userList" Grid.Column="0" Margin="5,30,5,5" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" SelectionChanged="selectionChanged" Grid.RowSpan="1" >

        </ListBox>

        <Expander x:Name="expanderHistory" Header="History" HorizontalAlignment="Stretch" Grid.Row="0" Grid.Column="0" VerticalAlignment="Top" Expanded="expanderHistory_Expanded">
            <ListBox x:Name="historyList" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" SelectionChanged="historyList_SelectionChanged" >
            </ListBox>
        </Expander>
        <Grid Grid.Column="0" Grid.Row="1" Margin="5" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="30*"/>
                <ColumnDefinition Width="23*"/>
                <ColumnDefinition Width="67*"/>
            </Grid.ColumnDefinitions>
            <Button x:Name="buttonScan"  Content="Scan" HorizontalAlignment="Stretch" Margin="0" VerticalAlignment="Stretch" Click="Button_Click_1" Grid.Column="2"/>
            <CheckBox x:Name="checkBoxAutoScan" Content="Auto" HorizontalAlignment="Stretch" Margin="0" VerticalAlignment="Center" Checked="checkBoxAutoScan_Checked" Unchecked="checkBoxAutoScan_Unchecked" />
            <Button x:Name="buttonSelectFolder" Content="..." Grid.Column="1" Margin="0,0,10,0" HorizontalAlignment="Right"  VerticalAlignment="Stretch" Width="36" MouseEnter="buttonSelectFolder_MouseEnter" MouseLeave="buttonSelectFolder_MouseLeave" Click="buttonSelectFolder_Click" />
        </Grid>
        <ProgressBar x:Name="progressBar" Grid.Column="1" HorizontalAlignment="Stretch"  Margin="5" Grid.Row="1" VerticalAlignment="Stretch" Value="0" />
        <TextBox x:Name="progressText" Grid.Column="1" HorizontalAlignment="Stretch" Margin="5" Grid.Row="1" TextWrapping="Wrap" Text="Idle..." VerticalAlignment="Stretch" Background="Transparent" TextAlignment="Center" IsReadOnly="True" />
        <Grid Grid.Column="1" HorizontalAlignment="Stretch" Margin="5" VerticalAlignment="Stretch" Grid.RowSpan="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="61*"/>
                <RowDefinition Height="58*"/>
                <RowDefinition Height="173*"/>
                <RowDefinition Height="115*"/>
                <RowDefinition Height="30"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="348*"/>
                <ColumnDefinition Width="131*"/>
            </Grid.ColumnDefinitions>
            <Grid Grid.Column="0" Grid.Row="0" >
                <Grid.RowDefinitions>
                    <RowDefinition Height="23*"/>
                    <RowDefinition Height="54*"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="73*"/>
                    <ColumnDefinition Width="14*"/>
                </Grid.ColumnDefinitions>
                <Label x:Name="labelPlayername" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Margin="5" FontSize="20" Grid.Column="0" FontWeight="Bold" Grid.RowSpan="2" />
                <Image x:Name="imageCountryFlag" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
                <Label x:Name="labelCountryTag" Content="×" Grid.Column="1" HorizontalAlignment="Center"  Grid.Row="1" VerticalAlignment="Center" FontSize="20" FontWeight="Bold"/>
                <Label x:Name="labelRealName" Content="Label" HorizontalAlignment="Left" Margin="5,5,0,0" Grid.Row="1" VerticalAlignment="Bottom"/>
            </Grid>


            <Image x:Name="imageAvatar" Grid.Column="1" HorizontalAlignment="Center" Height="64" VerticalAlignment="Top" Width="64" OpacityMask="Black" Margin="34,0,33,0" Grid.RowSpan="2" >
            </Image>
            <Grid HorizontalAlignment="Stretch" Grid.Row="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="30*"/>
                    <ColumnDefinition Width="10*"/>
                    <ColumnDefinition Width="30*"/>
                    <ColumnDefinition Width="52*"/>
                </Grid.ColumnDefinitions>
                <Label x:Name="LabelWins" Content="0" HorizontalAlignment="Center" VerticalAlignment="Stretch" FontSize="30" Foreground="Green"/>
                <Label Content="×" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Stretch" FontSize="30"/>
                <Label x:Name="LabelLost" Content="0" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Top"  FontSize="30"  Foreground="Red"/>
                <Label x:Name="LabelWinrate" Content="0.00%" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="30" Foreground="Red"/>
            </Grid>
            <GroupBox Header="Roshan Timer" HorizontalAlignment="Stretch"  Grid.Row="3" VerticalAlignment="Stretch">
                <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
                    <Grid.RowDefinitions>
                        <RowDefinition Height="47*"/>
                        <RowDefinition Height="47*"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="17*"/>
                        <ColumnDefinition Width="11*"/>
                    </Grid.ColumnDefinitions>
                    <Label x:Name="labelRoshanTimer" Content="10:00" HorizontalAlignment="Stretch"  Grid.RowSpan="2" VerticalAlignment="Stretch" FontSize="50" FontWeight="Bold"/>
                    <Button x:Name="buttonStartTimer" Content="Start/Restart" Margin="10" Grid.Column="1" HorizontalAlignment="Stretch"  VerticalAlignment="Stretch" Click="buttonStartTimer_Click" />
                    <Button x:Name="buttonTimerSettings" Content="Settings..." Margin="10" Grid.Column="1" HorizontalAlignment="Stretch" Grid.Row="1" VerticalAlignment="Stretch" Click="buttonTimerSettings_Click"/>
                
                </Grid>
            </GroupBox>
            <Button x:Name="buttonUpdate" Content="Check for updates..." Grid.Column="1" HorizontalAlignment="Stretch" Margin="5" Grid.Row="3" VerticalAlignment="Stretch" Click="buttonUpdate_Click" />
        </Grid>
        

    </Grid>

</Window>
